package android.demo.engine.tasks.hardcoded;

import android.content.Context;
import android.content.Intent;
import android.demo.engine.ProcessStateManager;
import android.demo.engine.tasks.ServiceStarterTask;
import android.demo.library.MakeLoanService;
import android.demo.library.model.Library;

public class HardCodedServiceStarterTask extends ServiceStarterTask {

	public HardCodedServiceStarterTask(int id) {
		super(id);
	}
	
	@Override
	public Intent getIntent(Context context, ProcessStateManager processState) {
		Intent i = new Intent(context,MakeLoanService.class);
		i.putExtra(Library.KEY_ID, processState.getLong(Library.KEY_ID));
		return i;
	}

}
